package entity;

import util.DateUtil;

public class User {
    private int id;
    private String name;
    private String password;
    private boolean enable;
    private String ip;
    private long lastTime;
    private String timeString;
    
    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public boolean isEnable() {
        return enable;
    }

    public void setEnable(boolean enable) {
        this.enable = enable;
    }

    public long getLastTime() {
        return lastTime;
    }

    public void setLastTime(long lastTime) {
        this.lastTime = lastTime;
        timeString = DateUtil.showFullDate(lastTime);
    }

	public String getTimeString() {
		return timeString;
	}

}
